<#import "htmlBase.ftl" as html />
<#import "menu.ftl" as menu />
<#--currentMenu:当前菜单项-->
<#macro pageBase currentMenu topMenu="" title="" jsFiles=[] cssFiles=[] staticJsFiles=[] staticCssFiles=[] checkLogin=true>
<@html.htmlBase title=title jsFiles=jsFiles cssFiles=cssFiles staticJsFiles=staticJsFiles staticCssFiles=staticCssFiles checkLogin=checkLogin>
<body>
        <!-- Navigation -->
        <div class="header">
            <div class="dl-title">
                    <span class="lp-title-port">爱优享</span><span class="dl-title-text">运营平台</span>
            </div>

            <div class="dl-log">欢迎您，<span class="dl-log-user"> ${currentUser().nickname!currentUser().username}</span><a href="${basepath}/manage/user/logout" title="退出系统" class="dl-log-quit">[退出]</a>
            </div>
        </div>
        <div class="content">
            <div class="dl-tab-item">
                <div class="dl-second-nav">
                    <@menu.menu menus=userMenus topMenu=topMenu currentMenu=currentMenu/>
                </div>
                <div class="dl-inner-tab">
                    <ol class="breadcrumb">
                        <li>
                            <a href="${basepath}/manage/user/home">首页</a>
                        </li>
                        <li class="active">${currentMenu}</li>
                    </ol>
                    <div class="row" style="margin: 0 10px">

                         <#if message??>
                                <div class="alert alert-success alert-dismissable fade in" id="alert-success">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                ${message}
                                </div>
                            </#if>
                            <#if warning??>
                                <div class="alert alert-warning alert-dismissable fade in" id="alert-warning">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                ${warning}
                                </div>
                            </#if>
                            <#if errorMsg??>
                                <div class="alert alert-danger alert-dismissable fade in" id="alert-danger">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                ${errorMsg}
                                </div>
                            </#if>
                            <#nested />
                        <!-- /.row -->
                    </div>

                </div>
            </div>
        </div>


</body>
</@html.htmlBase>
</#macro>